import React from 'react'


import './Swiper.less'

import { Carousel } from 'antd';

// autoplay

export default class Swiper extends React.Component {

    render() {

        let {banners}=this.props
        return (

            <Carousel   autoplay>

           {banners.map((v,i)=>{
               return(
                <div key={i}  className='bannerBox'>
               
                <img src={v} alt=""/>
              </div>

               )
           })}
          
           
          </Carousel>
        )
    }

}

